import Vue from 'vue'
import App from './App.vue'
import './style/base.css'
import 'lib-flexible'
import router from './router'
import './style/iconfont.less'

/* Vue.config.productionTip = false */
import HmHeader from './components/HmHeader.vue'
import HmLog from './components/HmLog.vue'
import HmButton from './components/HmButton.vue'
import HmInput from './components/HmInput.vue'
Vue.component('hm-header', HmHeader)
Vue.component('hm-log', HmLog)
Vue.component('hm-button', HmButton)
Vue.component('hm-input', HmInput)

// 导入axios请求 绑定vue的原型上  全局this.$axios
import axios from 'axios'
// 优化url路径
axios.defaults.baseURL = 'http://localhost:3000'
Vue.prototype.$axios = axios

// 按需引入vant-ui
import { Field, Toast } from 'vant'
Vue.use(Field)
Vue.use(Toast)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
